function mediafront_service in MediaFront 6
Same name and namespace in other branches
- 6.2 mediafront.module \mediafront_service()
- 7 mediafront.module \mediafront_service()
Implementation of hook_service()
File
- ./
mediafront.module, line 221
Code
function mediafront_service() {
return array(
array(
'#method' => 'mediafront.getPlaylist',
'#callback' => 'mediafront_get_playlist',
'#access arguments' => array(
'access content',
),
'#key' => FALSE,
'#args' => array(
array(
'#name' => 'playlist',
'#type' => 'string',
'#description' => t('Playlist name.'),
),
array(
'#name' => 'limit',
'#type' => 'int',
'#optional' => TRUE,
'#description' => t('The limit for the view to show.'),
),
array(
'#name' => 'page',
'#type' => 'int',
'#optional' => TRUE,
'#description' => t('The page number to show.'),
),
array(
'#name' => 'args',
'#type' => 'array',
'#optional' => TRUE,
'#description' => t('An array of arguments to pass to the view.'),
),
),
'#return' => 'array',
'#help' => t('Retrieves a playlist.'),
),
array(
'#method' => 'mediafront.getNode',
'#callback' => 'mediafront_get_node',
'#access arguments' => array(
'access content',
),
'#key' => FALSE,
'#args' => array(
array(
'#name' => 'nid',
'#type' => 'int',
'#description' => t('The node Id for the node you wish to get.'),
),
array(
'#name' => 'args',
'#type' => 'array',
'#optional' => TRUE,
'#description' => t('An array of arguments to pass to the node.'),
),
),
'#return' => 'array',
'#help' => t('Retrieves a node.'),
),
);
}