You are here

function mobile_tools_is_mobile_ctools_access in Mobile Tools 6.2

Same name and namespace in other branches
  1. 6.3 plugins/access/is_mobile.inc \mobile_tools_is_mobile_ctools_access()
  2. 6 plugins/access/is_mobile.inc \mobile_tools_is_mobile_ctools_access()

Implementation of specially named hook_ctools_access().

File

plugins/access/is_mobile.inc, line 11
Plugin to provide access control based on evaluated PHP.

Code

function mobile_tools_is_mobile_ctools_access() {
  $args['is_mobile'] = array(
    'title' => t("Mobile Browser"),
    'description' => t('Control access based on mobile browser.'),
    'callback' => 'mobile_tools_is_mobile_ctools_access_check',
    'default' => array(
      'description' => '',
      'browser' => '',
    ),
    'settings form' => 'mobile_tools_is_mobile_ctools_access_settings',
    'summary' => 'mobile_tools_is_mobile_ctools_acesss_summary',
    'all contexts' => TRUE,
  );
  return $args;
}