'. t("This module allows users with the 'administer faq' permission to create question and answer pairs which will be displayed on the 'faq' page. The 'faq' page is automatically generated from the FAQ nodes configured and the layout of this page can be modified on the settings page. Users will need the 'view faq' permission in order to view the 'faq' page.") .'
'. ''. t("To create a question and answer, the user must create a 'FAQ' node (Create content >> FAQ). This screen allows the user to edit the question and answer text. If the 'Taxonomy' module is enabled and there are some terms configured for the FAQ node type, it will also be possible to put the questions into different categories when editing.") .'
'. ''. t("The 'Frequently Asked Questions' settings configuration screen will allow users with 'administer faq' permissions to specify different layouts of the questions and answers.") .'
'. ''. t("All users with 'view faq' permissions will be able to view the generated FAQ page at 'www.example.com/faq'.") .'
'; return $output; case "admin/modules#description": return t("Allows the user to configure the layout of questions and answers on a FAQ page."); case "node/add/faq": return t("Add a question and answer to a FAQ list."); } } /** * Implementation of hook_perm(). */ function faq_perm() { return array('administer faq', 'view faq', 'edit own faq', 'edit faq', 'create faq'); } /** * Implementation of hook_access(). */ function faq_access($op, $node) { global $user; if ($op == 'create') { if (user_access('create faq') || user_access('administer faq')) { return TRUE; } } else if ($op == 'update' || $op == 'delete') { if (user_access('edit faq') || user_access('administer faq')) { return TRUE; } else if (user_access('edit own faq') && $user->uid == $node->uid) { return TRUE; } } else if ($op == 'view') { return user_access('view faq'); } } /** * Implementation of hook_menu(). */ function faq_menu($may_cache) { $items = array(); if ($may_cache) { $items[] = array( 'path' => 'faq', 'title' => variable_get('faq_title', 'Frequently Asked Questions'), 'callback' => 'faq_page', 'access' => user_access('view faq'), 'weight' => 1 ); if (arg(0) == 'faq' && is_numeric(arg(1))) { $items[] = array( 'path' => 'faq/'. arg(1), 'title' => variable_get('faq_title', 'Frequently Asked Questions'), 'callback' => 'faq_page', 'callback arguments' => array(arg(1)), 'access' => user_access('view faq'), 'type' => MENU_CALLBACK, ); } $items[] = array( 'path' => 'admin/settings/faq', 'title' => t('Frequently Asked Questions'), 'callback' => 'faq_settings_page', 'access' => user_access('administer faq'), 'description' => t('Allows the user to configure the layout of questions and answers on a FAQ page.'), ); $items[] = array( 'path' => 'admin/settings/faq/general', 'title' => t('General'), 'description' => t('Allows the user to configure the header and descriptive text for the FAQ page.'), 'callback' => 'drupal_get_form', 'callback arguments' => array('faq_general_settings_form'), 'access' => user_access('administer faq'), 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, ); $items[] = array( 'path' => 'admin/settings/faq/questions', 'title' => t('Questions'), 'description' => t('Allows the user to configure the layout of questions and answers on a FAQ page.'), 'callback' => 'drupal_get_form', 'callback arguments' => array('faq_questions_settings_form'), 'access' => user_access('administer faq'), 'type' => MENU_LOCAL_TASK, 'weight' => -9, ); $items[] = array( 'path' => 'admin/settings/faq/categories', 'title' => t('Categories'), 'description' => t('Allows the user to configure the layout of questions and answers using categories on a FAQ page.'), 'callback' => 'drupal_get_form', 'callback arguments' => array('faq_categories_settings_form'), 'access' => user_access('administer faq'), 'type' => MENU_LOCAL_TASK, 'weight' => -8, ); $items[] = array( 'path' => 'admin/settings/faq/weight', 'title' => t('Weight'), 'description' => t('Allows the user to configure the order of questions and answers on a FAQ page.'), 'callback' => 'drupal_get_form', 'callback arguments' => array('faq_weight_settings_form'), 'access' => user_access('administer faq'), 'type' => MENU_LOCAL_TASK, 'weight' => -8, ); $items[] = array( 'path' => 'node/add/faq', 'title' => t('FAQ'), 'access' => user_access('create faq'), ); } return $items; } /** * Implementation of hook_node_info(). * * Defines the FAQ node/content type. * @return * An array, containing the title, module name and the description. */ function faq_node_info() { return array( 'faq' => array( 'name' => t('FAQ'), 'module' => 'faq', 'description' => t('A frequently asked question and its answer.'), ) ); } /** * Implementation of hook_node_name(). */ function faq_node_name($node) { return t('FAQ'); } /** * Defines the form where new questions and answers are written. * * @param &$node * The node object. * @return * The form elements in the $form array. */ function faq_form(&$node) { $type = node_get_types('type', $node); // Question. $form['title'] = array( '#type' => 'textarea', '#title' => t('Question'), '#default_value' => empty($node->question) ? $node->title : $node->question, '#required' => TRUE, '#weight' => -1, '#rows' => 3, '#description' => t('Question to be answered'), ); // Answer. $form['body_filter']['body'] = array( '#type' => 'textarea', '#title' => t('Answer'), '#default_value' => $node->body, '#rows' => 20, '#weight' => 0, '#required' => TRUE, '#description' => t('This is that answer to the question. It will be filtered according to the input format.'), ); $form['body_filter']['format'] = filter_form($node->format); return $form; } /** * Inserts the faq node question text into the 'faq_questions' table. * * @param $node * The node object. */ function faq_insert($node) { $ret = db_query("INSERT INTO {faq_questions} (nid, vid, question) VALUES(%d, %d, '%s')", $node->nid, $node->vid, $node->title); } /** * Updates the faq node question text in the 'faq_questions' table. * * @param $node * The node object. */ function faq_update($node) { if ($node->revision) { faq_insert($node); } else { db_query("UPDATE {faq_questions} SET question = '%s' WHERE nid = %d AND vid = %d", $node->title, $node->nid, $node->vid); } } /** * Deletes an FAQ node from the database. * * @param &$node * Which node to delete. */ function faq_delete(&$node) { db_query('DELETE FROM {faq_weights} WHERE nid = %d', $node->nid); db_query('DELETE FROM {faq_questions} WHERE nid = %d', $node->nid); } /** * Implementation of hook_load(). * * Initialises $node->question using the value in the 'faq_questions' table. * * @param $node * The node object. */ function faq_load($node) { $result = db_fetch_object(db_query('SELECT question FROM {faq_questions} WHERE nid = %d AND vid = %d', $node->nid, $node->vid)); $node->question = $result->question; $node->title = $node->question; return $node; } /** * Implementation of hook_nodeapi(). */ function faq_nodeapi(&$node, $op, $teaser, $page) { switch ($op) { case 'delete revision': db_query('DELETE FROM {faq_questions} WHERE nid = %d AND vid = %d', $node->nid, $node->vid); break; } } /** * Display a FAQ node. * * @param $node * Which node to show. * @param $teaser * Boolean variable, if set to TRUE, it will show only a short part of the * content. * @param $page * Boolean variable, if set to TRUE, it will setup the breadcrumbs. * @return * The node object. */ function faq_view($node, $teaser = FALSE, $page = FALSE) { if ($page) { $breadcrumb = array(); $breadcrumb[] = array('path' => 'node/'. $node->nid); if (module_exists("taxonomy") && $node->taxonomy) { foreach ($node->taxonomy as $term) { $current = $term; continue; } $breadcrumb[] = array( 'path' => 'faq/'. $current->tid, 'title' => $current->name, ); while ($parents = taxonomy_get_parents($current->tid)) { $current = array_shift($parents); $breadcrumb[] = array( 'path' => 'faq/'. $current->tid, 'title' => $current->name, ); } } $breadcrumb[] = array( 'path' => 'faq', 'title' => variable_get('faq_title', 'Frequently Asked Questions'), ); $breadcrumb = array_reverse($breadcrumb); menu_set_location($breadcrumb); } $node = node_prepare($node, $teaser); return $node; } /** * Generates the settings form for the FAQ module. * * @param $op * Default value is NULL; determines what are the permissions of the current * user on the FAQ. * @return * The output, which contains the HTML code for the settings form generated by * drupal_get_form() function. */ function faq_settings_page($op = NULL) { $output .= drupal_get_form('faq_general_settings_form'); return $output; } /** * Define a form to edit the page header and descriptive text. * * @return * The general settings form code stored in the $form variable, before * converted to HTML. */ function faq_general_settings_form() { $form['faq_title'] = array( '#type' => 'textfield', '#title' => t('Title'), '#default_value' => variable_get('faq_title', 'Frequently Asked Questions'), ); $form['body_filter']['faq_description'] = array( '#type' => 'textarea', '#title' => t('FAQ Description'), '#default_value' => variable_get('faq_description', ''), '#description' => t('Your FAQ description. This will be placed at the top of the page, above the questions and can serve as an introductory text.'), '#rows' => 5, ); $form['body_filter']['faq_description_format'] = filter_form(variable_get('faq_description_format', '')); $form['update'] = array( '#type' => 'submit', '#value' => t('Save configuration'), '#weight' => 3, ); return $form; } /** * Function saves the options set by the user in the FAQ Settings - General tab. * * @param $form_id * The id of the form. * @param &$form_values * Array reference containing the form values submitted. */ function faq_general_settings_form_submit($form_id, $form_values) { if ($form_values['op'] == t('Save configuration')) { variable_set('faq_title', $form_values['faq_title']); variable_set('faq_description', $form_values['faq_description']); variable_set('faq_description_format', $form_values['format']); drupal_set_message(t('Configuration has been updated.')); } } /** * Define the elements for the FAQ Settings page - Questions tab. * * @return * The form code inside the $form array. */ function faq_questions_settings_form() { drupal_add_js(drupal_get_path('module', 'faq') .'/faq.js', 'module'); $display_options['questions_inline'] = t('Questions inline'); $display_options['questions_top'] = t('Clicking on question takes user to answer further down the page'); $display_options['hide_answer'] = t('Clicking on question opens/hides answer under question'); $display_options['new_page'] = t('Clicking on question opens the answer in a new page'); $form['faq_display'] = array( '#type' => 'radios', '#options' => $display_options, '#title' => t('Page layout'), '#description' => t('This controls how the questions and answers are displayed on the page and what happens when someone clicks on the question.'), '#default_value' => variable_get('faq_display', 'questions_top'), ); $form['faq_questions_misc'] = array( '#type' => 'fieldset', '#title' => t('Miscellaneous layout settings'), '#collapsible' => TRUE, ); $form['faq_questions_misc']['faq_question_listing'] = array( '#type' => 'select', '#options' => array('ol' => t('Ordered list'), 'ul' => t('Unordered list')), '#title' => t('Questions listing style'), '#description' => t("This allows to select how the questions listing is presented. It only applies to the layouts: 'Clicking on question takes user to answer further down the page' and 'Clicking on question opens the answer in a new page'. An ordered listing would number the questions, whereas an unordered list will have a bullet to the left of each question."), '#default_value' => variable_get('faq_question_listing', 'ul'), ); $form['faq_questions_misc']['faq_qa_mark'] = array( '#type' => 'checkbox', '#title' => t('Label questions and answers'), '#description' => t('This option is only valid for the "Questions Inline" layout. It labels all questions on the faq page with the "question label" setting and all answers with the "answer label" setting. For example these could be set to "Q:" and "A:".'), '#default_value' => variable_get('faq_qa_mark', FALSE), ); $form['faq_questions_misc']['faq_question_label'] = array( '#type' => 'textfield', '#title' => t('Question Label'), '#description' => t('The label to pre-pend to the question text in the "Questions Inline" layout if labelling is enabled.'), '#default_value' => variable_get('faq_question_label', 'Q:'), ); $form['faq_questions_misc']['faq_answer_label'] = array( '#type' => 'textfield', '#title' => t('Answer Label'), '#description' => t('The label to pre-pend to the answer text in the "Questions Inline" layout if labelling is enabled.'), '#default_value' => variable_get('faq_answer_label', 'A:'), ); $form['faq_questions_misc']['faq_use_teaser'] = array( '#type' => 'checkbox', '#title' => t('Use answer teaser'), '#description' => t("This enables the display of the answer teaser text instead of the full answer when using the 'Questions inline' or 'Clicking on question takes user to answer further down the page' display options. This is useful when you have long descriptive text. The user can see the full answer by clicking on the question."), '#default_value' => variable_get('faq_use_teaser', FALSE), ); $form['faq_questions_misc']['faq_show_node_links'] = array( '#type' => 'checkbox', '#title' => t('Show node links'), '#description' => t('This enables the display of links under the answer text on the faq page. Examples of these links include "Read more", "Add comment".'), '#default_value' => variable_get('faq_show_node_links', FALSE), ); $form['faq_questions_misc']['faq_back_to_top'] = array( '#type' => 'textfield', '#title' => t('"Back to Top" link text'), '#description' => t('This allows the user to change the text displayed for the links which return the user to the top of the page on certain page layouts. Defaults to "Back to Top". Leave blank to have no link.'), '#default_value' => variable_get('faq_back_to_top', 'Back to Top'), ); $form['faq_questions_misc']['faq_disable_node_links'] = array( '#type' => 'checkbox', '#title' => t('Disable question links to nodes'), '#description' => t('This allows the user to prevent the questions being links to the faq node in all layouts except "Clicking on question opens the answer in a new page".'), '#default_value' => variable_get('faq_disable_node_links', FALSE), ); $form['faq_questions_misc']['faq_default_sorting'] = array( '#type' => 'select', '#title' => t('Default Sorting for Non-Weighted FAQs'), '#options' => array('DESC' => t('Date Descending'), 'ASC' => t('Date Ascending')), '#description' => t("This controls the default weighting behaviour for new FAQ nodes which haven't been assigned a weight."), '#default_value' => variable_get('faq_default_sorting', 'DESC'), ); return system_settings_form($form); } /** * Define the elements for the FAQ Settings page - categories tab. * * @return * The form code inside the $form array. */ function faq_categories_settings_form() { if (!module_exists("taxonomy")) { drupal_set_message(t('Categorization of questions will not work without the "taxonomy" module being enabled.'), 'error'); } drupal_add_js(drupal_get_path('module', 'faq') .'/faq.js', 'module'); // Set up a hidden variable. $form['faq_display'] = array( '#type' => 'hidden', '#value' => variable_get('faq_display', 'questions_top'), ); $form['faq_use_categories'] = array( '#type' => 'checkbox', '#title' => t('Categorize questions'), '#description' => t('This allows the user to display the questions according to the categories configured on the add/edit FAQ page. Use of sub-categories is only recommended for large lists of questions. The Taxonomy module must be enabled.'), '#default_value' => variable_get('faq_use_categories', FALSE), ); $category_options['categories_inline'] = t('Categories inline'); $category_options['hide_qa'] = t('Clicking on category opens/hides questions and answers under category'); $category_options['new_page'] = t('Clicking on category opens the questions/answers in a new page'); $form['faq_category_display'] = array( '#type' => 'radios', '#options' => $category_options, '#title' => t('Categories layout'), '#description' => t('This controls how the categories are displayed on the page and what happens when someone clicks on the category.'), '#default_value' => variable_get('faq_category_display', 'categories_inline'), ); $form['faq_category_misc'] = array( '#type' => 'fieldset', '#title' => t('Miscellaneous layout settings'), '#collapsible' => TRUE, ); $form['faq_category_misc']['faq_category_listing'] = array( '#type' => 'select', '#options' => array('ol' => t('Ordered list'), 'ul' => t('Unordered list')), '#title' => t('Categories listing style'), '#description' => t("This allows to select how the categories listing is presented. It only applies to the 'Clicking on category opens the questions/answers in a new page' layout. An ordered listing would number the categories, whereas an unordered list will have a bullet to the left of each category."), '#default_value' => variable_get('faq_category_listing', 'ul'), ); $form['faq_category_misc']['faq_count'] = array( '#type' => 'checkbox', '#title' => t('Show FAQ count'), '#description' => t('This displays the number of questions in a category after the category name.'), '#default_value' => variable_get('faq_count', FALSE), ); $form['faq_category_misc']['faq_answer_category_name'] = array( '#type' => 'checkbox', '#title' => t('Display category name for answers'), '#description' => t("This allows the user to toggle the visibility of the category name above each answer section for the 'Clicking on question takes user to answer further down the page' question/answer display."), '#default_value' => variable_get('faq_answer_category_name', FALSE), ); $form['faq_category_misc']['faq_group_questions_top'] = array( '#type' => 'checkbox', '#title' => t("Group questions and answers for 'Categories inline'"), '#description' => t("This controls how categories are implemented with the 'Clicking on question takes user to answer further down the page' question/answer display."), '#default_value' => variable_get('faq_group_questions_top', FALSE), ); $form['faq_category_misc']['faq_hide_child_terms'] = array( '#type' => 'checkbox', '#title' => t("Only show sub-categories when parent category is selected"), '#description' => t("This allows the user more control over how and when sub-categories are displayed. It does not affect the 'Categories inline' display."), '#default_value' => variable_get('faq_hide_child_terms', FALSE), ); $form['faq_category_misc']['faq_show_term_page_children'] = array( '#type' => 'checkbox', '#title' => t("Show sub-categories on FAQ category pages"), '#description' => t("Sub-categories with 'faq' nodes will be displayed on the per category FAQ page. This will also happen if 'Only show sub-categories when parent category is selected' is set."), '#default_value' => variable_get('faq_show_term_page_children', FALSE), ); $form['faq_category_advanced'] = array( '#type' => 'fieldset', '#title' => t('Advanced category settings'), '#collapsible' => TRUE, '#collapsed' => TRUE, ); $vocab_options = array(); $vocabularies = taxonomy_get_vocabularies('faq'); foreach ($vocabularies as $vid => $vobj) { $vocab_options[$vid] = $vobj->name; } $form['faq_category_advanced']['faq_omit_vocabulary'] = array( '#type' => 'select', '#title' => t('Omit vocabulary'), '#description' => t("Terms from these vocabularies will be excluded from the FAQ pages."), '#default_value' => variable_get('faq_omit_vocabulary', 0), '#options' => $vocab_options, '#multiple' => TRUE, ); return system_settings_form($form); } /** * Define the elements for the FAQ Settings page - weight tab. * * @param $form_values * The submitted form values. * @return * The form code, before being converted to HTML format. */ function faq_weight_settings_form($form_values = NULL) { drupal_add_js(drupal_get_path('module', 'faq') .'/faq.js', 'module'); drupal_add_css(drupal_get_path('module', 'faq') .'/faq.css'); $use_categories = variable_get('faq_use_categories', FALSE); if (!$use_categories) { $step = "order"; } elseif (!isset($form_values)) { $step = "categories"; } else { $step = "order"; } $form['step'] = array( '#type' => 'value', '#value' => $step, ); $form['#multistep'] = TRUE; $form['#redirect'] = FALSE; // Categorized q/a. if ($step == "categories") { // Get list of categories. $vocabularies = taxonomy_get_vocabularies('faq'); $options = array(); foreach ($vocabularies as $vid => $vobj) { $tree = taxonomy_get_tree($vid); foreach ($tree as $term) { if (!taxonomy_term_count_nodes($term->tid, 'faq')) { continue; } $options[$term->tid] = $term->name; $form['choose_cat']['faq_category'] = array( '#type' => 'select', '#title' => t("Choose a category"), '#description' => t("Choose a category that you wish to order the questions for."), '#options' => $options, '#multiple' => FALSE, ); $form['choose_cat']['search'] = array( '#type' => 'submit', '#value' => t('Search'), ); } } } else { $options = array(); $category = $form_values['faq_category']; $default_sorting = variable_get('faq_default_sorting', 'DESC'); $default_weight = 0; if ($default_sorting != 'DESC') { $default_weight = 1000000; } if (empty($category)) { $category = 0; if ($default_sorting == 'DESC') { $result = db_query(db_rewrite_sql("SELECT n.nid, n.title, if((w.weight IS NULL), %d, w.weight) as weight, n.sticky, n.created FROM {node} n LEFT JOIN {faq_weights} w ON n.nid = w.nid AND w.tid = %d WHERE n.type='faq' AND n.status = 1 ORDER BY weight ASC, n.sticky DESC, n.created DESC", "n", "nid"), $default_weight, $category); $date_result = db_query(db_rewrite_sql("SELECT n.nid, n.title, if((w.weight IS NULL), %d, w.weight) as weight, n.sticky, n.created FROM {node} n LEFT JOIN {faq_weights} w ON n.nid = w.nid AND w.tid = %d WHERE n.type='faq' AND n.status = 1 ORDER BY n.sticky DESC, n.created DESC", "n", "nid"), $default_weight, $category); } else { $result = db_query(db_rewrite_sql("SELECT n.nid, n.title, if((w.weight IS NULL), %d, w.weight) as weight, n.sticky, n.created FROM {node} n LEFT JOIN {faq_weights} w ON n.nid = w.nid AND w.tid = %d WHERE n.type='faq' AND n.status = 1 ORDER BY weight ASC, n.sticky DESC, n.created ASC", "n", "nid"), $default_weight, $category); $date_result = db_query(db_rewrite_sql("SELECT n.nid, n.title, if((w.weight IS NULL), %d, w.weight) as weight, n.sticky, n.created FROM {node} n LEFT JOIN {faq_weights} w ON n.nid = w.nid AND w.tid = %d WHERE n.type='faq' AND n.status = 1 ORDER BY n.sticky DESC, n.created ASC", "n", "nid"), $default_weight, $category); } } else { if ($default_sorting == 'DESC') { $result = db_query(db_rewrite_sql("SELECT n.nid, n.title, if((w.weight IS NULL), %d, w.weight) as weight, n.sticky, n.created FROM {node} n INNER JOIN {term_node} tn ON n.nid = tn.nid LEFT JOIN {faq_weights} w ON n.nid = w.nid AND w.tid = %d WHERE n.type='faq' AND n.status = 1 AND tn.tid = %d ORDER BY weight ASC, n.sticky DESC, n.created DESC", "n", "nid"), $default_weight, $category, $category); $date_result = db_query(db_rewrite_sql("SELECT n.nid, n.title, if((w.weight IS NULL), %d, w.weight) as weight, n.sticky, n.created FROM {node} n INNER JOIN {term_node} tn ON n.nid = tn.nid LEFT JOIN {faq_weights} w ON n.nid = w.nid AND w.tid = %d WHERE n.type='faq' AND n.status = 1 AND tn.tid = %d ORDER BY n.sticky DESC, n.created DESC", "n", "nid"), $default_weight, $category, $category); } else { $result = db_query(db_rewrite_sql("SELECT n.nid, n.title, if((w.weight IS NULL), %d, w.weight) as weight, n.sticky, n.created FROM {node} n INNER JOIN {term_node} tn ON n.nid = tn.nid LEFT JOIN {faq_weights} w ON n.nid = w.nid AND w.tid = %d WHERE n.type='faq' AND n.status = 1 AND tn.tid = %d ORDER BY weight ASC, n.sticky DESC, n.created ASC", "n", "nid"), $default_weight, $category, $category); $date_result = db_query(db_rewrite_sql("SELECT n.nid, n.title, if((w.weight IS NULL), %d, w.weight) as weight, n.sticky, n.created FROM {node} n INNER JOIN {term_node} tn ON n.nid = tn.nid LEFT JOIN {faq_weights} w ON n.nid = w.nid AND w.tid = %d WHERE n.type='faq' AND n.status = 1 AND tn.tid = %d ORDER BY n.sticky DESC, n.created ASC", "n", "nid"), $default_weight, $category, $category); } } while ($node = db_fetch_object($result)) { $title = (drupal_strlen($node->title) <= 64) ? $node->title : substr_replace($node->title, "...", 63); $options[$node->nid] = $title; $order .= "$node->nid,"; } $order = rtrim($order, ","); while ($node = db_fetch_object($date_result)) { $date_options[$node->nid] = $node->title; $date_order .= "$node->nid,"; } $date_order = rtrim($date_order, ","); $form['weight']['faq_node_order'] = array( '#type' => 'hidden', '#default_value' => $order, ); $form['weight']['faq_node_date_order'] = array( '#type' => 'hidden', '#default_value' => $date_order, ); $form['weight']['faq_category'] = array( '#type' => 'value', '#value' => $category, ); $asc = 'ascending'; $desc = 'descending'; $form['weight']['order_no_cats'] = array( '#type' => 'select', '#title' => t("Question Order"), '#description' => t("This determines the order of the questions and answers on the FAQ page. Just select one or more questions and use the arrows to change their position in the list. You can also order the list by the question creation date !desc or !asc.", array('!desc' => $desc, '!asc' => $asc)), '#options' => $options, '#multiple' => TRUE, '#size' => min(20, count($options)), ); $form['weight']['move_up'] = array( '#type' => 'markup', '#value' => ' ', ); $form['weight']['move_down'] = array( '#type' => 'markup', '#value' => '