pluginType)) { $defaults = array( 'page callback' => 'drupal_get_form', 'access callback' => 'tmgmt_job_access', 'access arguments' => array('create'), ); if (isset($this->pluginInfo['file'])) { $defaults['file'] = $this->pluginInfo['file']; } if (isset($this->pluginInfo['file path'])) { $defaults['file path'] = $this->pluginInfo['file path']; } foreach ($types as $type => $name) { $items['admin/tmgmt/sources/' . $this->pluginType . '_' . $type] = $defaults + array( 'title' => check_plain($name), 'page arguments' => array('tmgmt_ui_' . $this->pluginType . '_source_' . $type . '_overview_form', $this->pluginType, $type), 'type' => MENU_LOCAL_TASK, ); } } return $items; } /** * {@inheritdoc} */ public function hook_forms() { $info = array(); if ($types = tmgmt_source_translatable_item_types($this->pluginType)) { foreach (array_keys($types) as $type) { $info['tmgmt_ui_' . $this->pluginType . '_source_' . $type . '_overview_form'] = array( 'callback' => 'tmgmt_ui_source_overview_form', 'wrapper_callback' => 'tmgmt_ui_source_overview_form_defaults', ); } } return $info; } /** * {@inheritdoc} */ public function hook_views_default_views() { return array(); } }