public function theme() { // must call parent theme to get node list template - MAG 6/3/2008 $parent_themes = parent::theme(); $new_themes = array('researchstatement_main' => array('template' => 'researchstatement-main', 'arguments' => array('node' => NULL)), 'researchstatement_list' => array('arguments' => array('nodes' => array(), 'pager' => '', 'title' => t('Research Statements'))), 'researchstatement_table' => array('template' => 'researchstatement-table', 'arguments' => array('nodes' => array(), 'pager' => '', 'title' => t('Research Statements'))), 'researchstatement_pubmed_link' => array('arguments' => array('node' => NULL, 'verbose' => TRUE))); return array_merge($parent_themes, $new_themes); }
public function __construct() { parent::__construct("pubgroup", "Publication Group"); }
public function __construct() { parent::__construct("newsarticle", "News Article"); $this->permName = "news article"; }
public function __construct() { parent::__construct("antibody", "Antibody"); $this->permNamePlural = "antibodies"; $this->displayNamePlural = "Antibodies"; }
public function __construct() { parent::__construct("contributor", "Contributor"); }
public function theme() { // must call parent theme to get the node list template - MAG 6/3/2008 $parent_theme = parent::theme(); return array_merge($parent_theme, array('gene_main' => array('template' => 'gene-main', 'arguments' => array('node' => NULL)), 'gene_table' => array('template' => 'gene-table', 'arguments' => array('nodes' => array(), 'pager' => '', 'title' => t('Genes'))))); }
public function adminSettingsSubform() { $form = parent::adminSettingsSubform(); $options = $this->docTypeOptions(); $form[DEFAULT_DOCTYPE_VAR] = array('#type' => 'radios', '#options' => $options, '#title' => t('Default document type for publications'), '#default_value' => variable_get(DEFAULT_DOCTYPE_VAR, '')); return $form; }
public function nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) { switch ($op) { case 'view': // $a3 == $teaser if (!$a3 && $node->type == 'member') { $contribs = $this->listMemberContributions($node->muid); if (!empty($contribs)) { if (!isset($node->content['contributions'])) { $node->content['contributions'] = array('#value' => '', '#weight' => 4); } $node->content['contributions']['#value'] .= theme('member_contribs', t('Interview'), t('Interviews'), $contribs); } } break; default: return parent::nodeapi($node, $op, $a3, $a4); } }
public function __construct() { parent::__construct("modelorganism", "Model Organism"); $this->permName = "model organism"; }