public function FlexiformElementFlexiform::configureForm in Flexiform 7
Build the configure form for the element.
Overrides FlexiformElement::configureForm
File
- includes/
element/ flexiform.element.inc, line 51 - Contains FlexiformElementFlexiform class.
Class
- FlexiformElementFlexiform
- Class to embed one flexiform inside another.
Code
public function configureForm($form, &$form_state, $flexiform) {
$form = parent::configureForm($form, $form_state, $flexiform);
$link = l(t('Edit @flexiform', array(
'@flexiform' => $this
->label(),
)), 'admin/structure/flexiform/manage/' . $this->form);
$form['description'] = array(
'#weight' => -1,
'#markup' => t('There are no settings for @flexiform as it is a nested form. You can edit the flexiform by clicking on the link below, however these changes will effect the form everywhere it is used.<br />!link', array(
'@flexiform' => $this
->label(),
'!link' => $link,
)),
);
return $form;
}