Пример #1
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     // Set the default to TRUE so it shows on empty pages by default.
     $options['empty']['default'] = TRUE;
     return $options;
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function buildOptionsForm(&$form, &$form_state)
 {
     parent::buildOptionsForm($form, $form_state);
     // Add tokenization form elements.
     $this->tokenForm($form, $form_state);
 }