Jump to content

Community

Adriano Faria

+Clients
  • Content Count

    25,267
  • Joined

  • Days Won

    318

Reputation Activity

  1. Like
    Adriano Faria got a reaction from wtanton in Form Helper (*)   
    A few examples to load Nodes (forums, groups, downloads or gallery categories, themes, etc.):
    Forums:
    $form->add( new \IPS\Helpers\Form\Node( 'setting_name', \IPS\Settings::i()-> setting_name ? \IPS\Settings::i()->setting_name : 0, FALSE, array( 'class' => 'IPS\forums\Forum', 'zeroVal' => 'use_cat_forum' ), NULL, NULL, NULL, 'setting_name' ) ); The important here is the 'class' => 'IPS\forums\Forum'. You can use other elements:
    'class' => '\IPS\Theme' 'class' => 'IPS\Application' 'class' => 'IPS\gallery\Album' 'class' => 'IPS\gallery\Category' 'class' => 'IPS\downloads\Category'
     
×
×
  • Create New...