You are here

login_cookie__1_0.inc in RESTful 7

File

plugins/restful/user/login_cookie/1.0/login_cookie__1_0.inc
View source
<?php

if (variable_get('restful_enable_user_login_resource', TRUE)) {
  $plugin = array(
    'label' => t('Login'),
    'description' => t('Login a user and return a JSON along with the authentication cookie.'),
    'resource' => 'login_cookie',
    'class' => 'RestfulUserLoginCookie',
    'entity_type' => 'user',
    'bundle' => 'user',
    'authentication_types' => array(
      'basic_auth',
    ),
    // We will implement hook_menu() with custom settings.
    'menu_item' => variable_get('restful_hook_menu_base_path', 'api') . '/login',
  );
}