array( 'name' => t('Example provider'), 'description' => t('Sets a message for the the retrieved ID.'), 'callback' => 'drupal_set_message', 'example' => 'foobar', ), ); } /** * Optional hook for providers who use custom storage for modifiers. Should * return a keyed array where each key is a provider identifier and each value * is a sub-array of modifiers with modifier value and ID. */ function hook_purl_modifiers() { return array( 'my_module' => array( array('value' => 'foo', 'id' => 1), array('value' => 'bar', 'id' => 2), ), ); } /** * CTools plugin API hook for PURL. Note that a proper entry in * hook_ctools_plugin_api() must exist for this hook to be called. */ function hook_purl_processor() { $plugins = array(); $plugins['cookie'] = array( 'handler' => array( 'path' => drupal_get_path('module', 'foo') .'/plugins', 'file' => 'purl_cookie.inc', 'class' => 'purl_cookie', ), ); return $plugins; }