You are here

function paragraphs_id_settings_form in Paragraphs ID 7

Menu callback function for settings form.

1 string reference to 'paragraphs_id_settings_form'
paragraphs_id_menu in ./paragraphs_id.module
Implements hook_menu().

File

includes/paragraphs_id.admin.inc, line 11
Admin include file for Paragraphs ID.

Code

function paragraphs_id_settings_form($form, &$form_state) {
  $form[PI_PARAGRAPHS_ITEM_ID_PREFIX] = array(
    '#type' => 'textfield',
    '#title' => t('Paragraphs ID class prefix'),
    '#description' => t('Prefix that is used for paragraphs item class IDs. Default prefix is "@default"', array(
      '@default' => PI_PARAGRAPHS_ITEM_ID_PREFIX_DEFAULT,
    )),
    '#default_value' => variable_get(PI_PARAGRAPHS_ITEM_ID_PREFIX, PI_PARAGRAPHS_ITEM_ID_PREFIX_DEFAULT),
  );
  return system_settings_form($form);
}