Example #1
0
 /**
  * {@inheritdoc}
  */
 public static function defaultContextSettings($context)
 {
     $defaults = array('formatter' => 'closed', 'description' => '') + parent::defaultSettings($context);
     if ($context == 'form') {
         $defaults['required_fields'] = 1;
     }
     return $defaults;
 }
 /**
  * {@inheritdoc}
  */
 public static function defaultContextSettings($context)
 {
     $defaults = array('open' => FALSE, 'required_fields' => $context == 'form') + parent::defaultSettings($context);
     if ($context == 'form') {
         $defaults['required_fields'] = 1;
     }
     return $defaults;
 }
Example #3
0
 /**
  * {@inheritdoc}
  */
 public static function defaultSettings()
 {
     return array('formatter' => 'open', 'description' => '', 'show_label' => 1, 'label_element' => 'h3', 'effect' => 'none', 'speed' => 'fast', 'required_fields' => 1) + parent::defaultSettings();
 }
Example #4
0
 /**
  * {@inheritdoc}
  */
 public static function defaultSettings()
 {
     return array('direction' => 'vertical') + parent::defaultSettings();
 }
 /**
  * {@inheritdoc}
  */
 public static function defaultContextSettings($context)
 {
     $defaults = array('element' => 'div', 'show_label' => 0, 'label_element' => 'h3', 'effect' => 'none', 'speed' => 'fast', 'attributes' => '') + parent::defaultSettings($context);
     if ($context == 'form') {
         $defaults['required_fields'] = 1;
     }
     return $defaults;
 }
Example #6
0
 /**
  * {@inheritdoc}
  */
 public static function defaultSettings()
 {
     return array('open' => FALSE) + parent::defaultSettings();
 }
Example #7
0
 /**
  * {@inheritdoc}
  */
 public static function defaultContextSettings($context)
 {
     return array('effect' => 'none') + parent::defaultSettings($context);
 }
Example #8
0
 /**
  * {@inheritdoc}
  */
 public function getClasses()
 {
     $classes = parent::getClasses();
     $classes[] = 'field-group-' . $this->group->format_type . '-wrapper';
     return $classes;
 }
Example #9
0
 /**
  * {@inheritdoc}
  */
 public static function defaultSettings()
 {
     return array('element' => 'div', 'show_label' => 0, 'label_element' => 'div', 'attributes' => '', 'required_fields' => 1) + parent::defaultSettings();
 }
Example #10
0
 /**
  * {@inheritdoc}
  */
 public static function defaultSettings()
 {
     return array('formatter' => 'closed', 'description' => '', 'required_fields' => 1) + parent::defaultSettings();
 }