Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct("pubgroup", "Publication Group");
 }
Exemplo n.º 3
0
 public function __construct()
 {
     parent::__construct("newsarticle", "News Article");
     $this->permName = "news article";
 }
Exemplo n.º 4
0
 public function __construct()
 {
     parent::__construct("antibody", "Antibody");
     $this->permNamePlural = "antibodies";
     $this->displayNamePlural = "Antibodies";
 }
Exemplo n.º 5
0
 public function __construct()
 {
     parent::__construct("contributor", "Contributor");
 }
Exemplo n.º 6
0
 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')))));
 }
Exemplo n.º 7
0
 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;
 }
Exemplo n.º 8
0
 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);
     }
 }
Exemplo n.º 9
0
 public function __construct()
 {
     parent::__construct("modelorganism", "Model Organism");
     $this->permName = "model organism";
 }