t('Help'), 'permissions' => t('Permissions'), 'configure' => t('Configure'), ); foreach ($form['validation_modules']['#value'] as $name => $module) { $info = $module->info; $description = isset($info['description']) ? $info['description'] : ''; $links = array(); foreach ($actions as $action_name => $action_title) { if (!empty($info[$action_name])) { $offset = strpos($info[$action_name], '#'); if ($offset === FALSE) { $options = array(); $path = $info[$action_name]; } else { $options = array( 'fragment' => drupal_substr($info[$action_name], $offset + 1), // +1 to skip # ); $path = drupal_substr($info[$action_name], 0, $offset); } $class = "about-module about-module-$action_name"; $options += array( 'attributes' => array('class' => $class), ); $links[$action_name] = l($action_title, $path, $options); } } if (!empty($links)) { $form['description'][$name]['#value'] .= '
' . implode('', $links); } } } } /** * Implements hook_init(). * * Add module CSS. */ function tweak_init() { drupal_add_css(drupal_get_path('module', 'tweak') . '/theme/tweak.css'); }