Welcome to Geeklog, Anonymous Saturday, April 20 2024 @ 01:02 am EDT

Geeklog Forums

plugin_getadminoption_


anonymouse

Anonymous
errm it may be obvious but can any one explain to me the role of the dbcount in the following snippet. Im working from the universal plugin framework.

if (SEC_hasRights('subscription.admin'Wink) {
return array('Subscriptions', $_CONF['pluginname_url'] . 'admin/index.php', DB_count($_TABLES['payments']));


In my code payment exists. I just dont understand the logic behind why we are checking.

Thanks
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Returns the number of entries in the 'payments' table so that they can be displayed behind the plugin's name in the Admin block.

bye, Dirk
 Quote

All times are EDT. The time is now 01:02 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content