You are here

function fasttoggle_modr8_fasttoggle_available_links in Fasttoggle 7

Implements hook_fasttoggle_labels().

File

module/fasttoggle_modr8/fasttoggle_modr8.module, line 32
Moder8 specific fasttoggle hook implementations.

Code

function fasttoggle_modr8_fasttoggle_available_links($type = NULL, $obj = NULL) {
  if (!is_null($type) && $type != "node") {
    return array();
  }
  $result = array(
    'node' => array(
      'fields' => array(
        'status' => array(
          'instances' => array(
            'moderate' => array(
              'description' => t('Moderated <small>(in the moderation queue)</small>'),
              'access' => array(
                'fasttoggle_modr8_moder8_access',
              ),
              'labels' => array(
                FASTTOGGLE_LABEL_ACTION => array(
                  0 => t('unmoderate'),
                  1 => t('moderate'),
                ),
                FASTTOGGLE_LABEL_STATUS => array(
                  0 => t('not moderated'),
                  1 => t('moderated'),
                ),
              ),
            ),
          ),
        ),
      ),
    ),
  );
  return $result;
}