You are here

function ad_ui_help in Advertisement 7.2

Implements hook_help().

File

./ad_ui.module, line 176

Code

function ad_ui_help($path, $arg) {
  switch ($path) {
    case 'admin/ad/types/add':
      return '<p>' . t('Individual ad types can have different fields assigned to them.') . '</p>';
  }

  // Return the user defined help text per ad type when adding ads.
  if ($arg[1] == 'ad' && $arg[2] == 'add' && $arg[3]) {
    $ad_type = ad_type_load(str_replace('-', '_', $arg[3]));
    return !empty($ad_type->help) ? '<p>' . filter_xss_admin($ad_type->help) . '</p>' : '';
  }
}