You are here

function _menu_per_role_unserialize_rids in Menu Per Role 7

Turn a serialized string of rids or hrids into an array of rids or hrids.

Parameters

string $rids: The serialized string to unserialize.

Return value

array An array of rids.

1 call to _menu_per_role_unserialize_rids()
_menu_per_role_get_roles in ./menu_per_role.module
Gets all roles with access to the specified menu item.

File

./menu_per_role.module, line 261
Allows restricting access to menu items per role.

Code

function _menu_per_role_unserialize_rids($rids) {
  return explode(',', $rids);
}