Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I really need to make some doc.
But the best example right now is the included module aef_easy_view_taxonomy. The main hook to implement is:
/**
* Implementation of hook_easy_view()
*/
function aef_easy_view_taxonomy_easy_view()
{
return array(
'easy_view_taxonomy' => array(
'key' => 'easy_view_taxonomy', //The internal name for this easyview
'title' => t('Tagged content'), // The title of this easyview
'view_name' => 'aef_easy_view_taxonomy', //The name of the view to use
'view_handler_name' => 'default', //The id of the view handler to use (e.g. page_1)
'view_handler_rss_name' => 'feed_2', //The id of the rss view handler to use (e.g. feed)
'element_name' => 'easy_view_taxonomy', //The form id of the form to use for the settings
'form_submit' => 'easy_view_taxonomy_easy_view_form_submit',
)
);
}
with the following doc for the hook:
/**
* Get the list of easy views provided by other modules.
* The hook return value must have the following structure:
* array(
* 'easy_view_key' => array(
* 'key' => '', //The internal name for this easyview
* 'title' => '', // The title of this easyview
* 'view_name' => '', //The name of the view to use
* (optional) 'view_handler_name' => '', //The id of the view handler to use (e.g. page_1)
* (optional) 'view_handler_rss_name' => '', //The id of the rss view handler to use (e.g. feed)
* 'element_name' => '', //The FAPI element name to use for the settings (e.g. my_easy_view_settings)
* 'form_submit' => '', // A function that, given the form values, will return an array containing
* // the parameter args to give to the view ('view_params' key),
* // optionally the args for the RSS feed ('feed_view_params' key),
* // and its data to store ('form_data' key)
* )
* )
*/
Comments
Comment #1
ndeschildre commentedhello,
I really need to make some doc.
But the best example right now is the included module aef_easy_view_taxonomy. The main hook to implement is:
with the following doc for the hook: