function profile_menu

Implements hook_menu().

File

modules/profile/profile.module, line 79

Code

function profile_menu() {
    $items['profile'] = array(
        'title' => 'User list',
        'page callback' => 'profile_browse',
        'access arguments' => array(
            'access user profiles',
        ),
        'file' => 'profile.pages.inc',
        'type' => MENU_SUGGESTED_ITEM,
    );
    $items['admin/config/people/profile'] = array(
        'title' => 'Profiles',
        'description' => 'Create customizable fields for your users.',
        'page callback' => 'drupal_get_form',
        'page arguments' => array(
            'profile_admin_overview',
        ),
        'access arguments' => array(
            'administer users',
        ),
        'file' => 'profile.admin.inc',
    );
    $items['admin/config/people/profile/add'] = array(
        'title' => 'Add field',
        'page callback' => 'drupal_get_form',
        'page arguments' => array(
            'profile_field_form',
        ),
        'access arguments' => array(
            'administer users',
        ),
        'type' => MENU_VISIBLE_IN_BREADCRUMB,
        'file' => 'profile.admin.inc',
    );
    $items['admin/config/people/profile/autocomplete'] = array(
        'title' => 'Profile category autocomplete',
        'page callback' => 'profile_admin_settings_autocomplete',
        'access arguments' => array(
            'administer users',
        ),
        'file' => 'profile.admin.inc',
        'type' => MENU_CALLBACK,
    );
    $items['admin/config/people/profile/edit'] = array(
        'title' => 'Edit field',
        'page callback' => 'drupal_get_form',
        'page arguments' => array(
            'profile_field_form',
        ),
        'access arguments' => array(
            'administer users',
        ),
        'type' => MENU_VISIBLE_IN_BREADCRUMB,
        'file' => 'profile.admin.inc',
    );
    $items['admin/config/people/profile/delete'] = array(
        'title' => 'Delete field',
        'page callback' => 'drupal_get_form',
        'page arguments' => array(
            'profile_field_delete',
        ),
        'access arguments' => array(
            'administer users',
        ),
        'type' => MENU_VISIBLE_IN_BREADCRUMB,
        'file' => 'profile.admin.inc',
    );
    $items['profile/autocomplete'] = array(
        'title' => 'Profile autocomplete',
        'page callback' => 'profile_autocomplete',
        'access arguments' => array(
            'access user profiles',
        ),
        'file' => 'profile.pages.inc',
        'type' => MENU_CALLBACK,
    );
    return $items;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.