You are here

function phone_cck_convert_menu in Phone 7.2

Implements hook_menu().

Add a menu item for the conversion UI.

File

phone_cck_convert/phone_cck_convert.module, line 15
Converts cck_phone-7.x-1.x fields into phone-7.x-2.x fields. (Note that cck_phone-6.x fields are handled by cck's content_migrate module.)

Code

function phone_cck_convert_menu() {
  $items['admin/config/content/phone-cck-convert'] = array(
    'title' => 'Convert cck_phone fields',
    'description' => 'Convert cck_phone-7.x-1.x fields into phone-7.x-2.x fields.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'phone_cck_convert_admin_form',
    ),
    'access arguments' => array(
      'access administration pages',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}