You are here

function mediafront_user_service in MediaFront 6

Same name and namespace in other branches
  1. 6.2 plugins/mediafront_user/mediafront_user.module \mediafront_user_service()

Implementation of hook_service()

File

plugins/mediafront_user/mediafront_user.module, line 8

Code

function mediafront_user_service() {
  return array(
    // mediafront.setUserStatus
    array(
      '#method' => 'mediafront.setUserStatus',
      '#callback' => 'mediafront_user_set_status',
      '#args' => array(
        array(
          '#name' => 'verb',
          '#type' => 'string',
          '#description' => t('What this person is doing. "Travis is <strong>listening to</strong>."'),
        ),
        array(
          '#name' => 'noun',
          '#type' => 'string',
          '#description' => t('The noun associated with the verb. "Travis is listening to <strong>music</strong>"'),
        ),
      ),
      '#return' => 'bool',
      '#help' => t('Returns if a successful status was made.'),
    ),
  );
}