Ticket #1485958 (closed Feature Requests: fixed)

Opened 9 months ago

Last modified 9 months ago

Please add a hook in steps ::: settings ::: func.inc ::: rcmail_identities_list

Reported by: rosali Owned by:
Priority: 5 Milestone: 0.3-stable
Component: Plugin API Version: svn-trunk
Severity: normal Keywords:
Cc:

Description (last modified by thomasb) (diff)

... I would need it urgently:

function rcmail_identities_list($attrib)
  {
  global $OUTPUT, $USER, $RCMAIL;

  // add id to message list table if not specified
  if (!strlen($attrib['id']))
    $attrib['id'] = 'rcmIdentitiesList';

  // define list of cols to be displayed
  $a_show_cols = array('name', 'email');
  
  $a_identities = $USER->list_identities();
  
  $RCMAIL->plugins->exec_hook('list_identities', $a_identities);
  
  // create XHTML table  
  $out = rcube_table_output($attrib, $a_identities, $a_show_cols, 'identity_id');
  
  // set client env
  $OUTPUT->add_gui_object('identitieslist', $attrib['id']);

  return $out;
  }

THANKS!

Change History

Changed 9 months ago by alec

  • milestone changed from later to 0.3-stable

Changed 9 months ago by thomasb

  • description modified (diff)

Changed 9 months ago by thomasb

  • status changed from new to closed
  • resolution set to fixed

Added in r2702 but arguments changed a bit. See Plugin_Hooks#list_identities

Note: See TracTickets for help on using tickets.