array( 'selectors' => $selectors, 'interval' => variable_get('formtips_interval', FORMTIPS_INTERVAL), 'sensitivity' => variable_get('formtips_sensitivity', FORMTIPS_SENSITIVITY), 'timeout' => variable_get('formtips_timeout', FORMTIPS_TIMEOUT), 'max_width' => variable_get('formtips_max_width', FORMTIPS_MAX_WIDTH), 'trigger_action' => variable_get('formtips_trigger_action', 'hover'), )); } /** * Implements hook_menu(). */ function formtips_menu() { $items = array(); $items['admin/config/user-interface/formtips'] = array( 'title' => 'Form tips', 'description' => 'Settings for the Formtips module.', 'page callback' => 'drupal_get_form', 'page arguments' => array('formtips_setting_form'), 'access arguments' => array('administer formtips'), 'file' => 'formtips.admin.inc', ); return $items; } /** * Implements hook_permission(). */ function formtips_permission() { return array( 'administer formtips' => array( 'title' => t('Administer Form tips'), 'description' => t('Perform administration tasks for Form tips.'), ), ); }